
def common_assert(res, status_code, success, code, message):
    assert status_code == res.status_code
    assert success is res.json().get("success")
    assert code == res.json().get("code")
    assert message in res.json().get("message")

 #   assert 200 == res.status_code
 #    assert False is res.json().get("success")
 #    assert 20001 == res.json().get("code")
 #    assert "用户名或密码错误" in res.json().get("message")
